import config from "@/config"
import http from "@/utils/request"

export default {
	lists: {
		url: `${config.API_URL}/adminapi/shop.subject/lists`,
        name: "获取课程科目管理列表",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
	add: {
		url: `${config.API_URL}/adminapi/shop.subject/add`,
		name: "添加课程科目管理",
		post: async function(data){
			return await http.post(this.url, data, {
				headers: {
					//'response-status': 401
				}
			});
		}
	},
	edit: {
        url: `${config.API_URL}/adminapi/shop.subject/edit`,
        name: "编辑课程科目管理",
        post: async function(data){
            return await http.post(this.url, data, {
                headers: {
                    //'response-status': 401
                }
            });
        }
    },
    delete: {
        url: `${config.API_URL}/adminapi/shop.subject/delete`,
        name: "删除课程科目管理",
        post: async function(data){
            return await http.post(this.url, data, {
                headers: {
                    //'response-status': 401
                }
            });
        }
    },
    detail: {
        url: `${config.API_URL}/adminapi/shop.subject/detail`,
        name: "获取课程科目管理详情",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
    },
}
